package homework02;

import java.util.Arrays;
import java.util.Scanner;

public class Four {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while(true) {
			int n = sc.nextInt();
			String str[][] = new String[n][];
			for(int i=0;i<n;i++) {
				str[i] = new String[i+1];
				int j;
				for( j =0;j<i+1 ; j++) {
					str[i][j] = (i+1)+"*"+(j+1)+"="+(i+1)*(j+1);
					if(j<i)						
						System.out.printf("%-7s",(i+1)+"*"+(j+1)+"="+(i+1)*(j+1));
					else
						System.out.printf((i+1)+"*"+(j+1)+"="+(i+1)*(j+1));
				}
				System.out.println();
			}
			System.out.println(Arrays.deepToString(str));
			
		}
	}
}

